package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderSettingDao {

    long findCountByOrderDate(String orderDate);

    void editNumberByOrderDate(int number, String orderDate);

    void add(String orderDate, int number, int reservations);

    List<OrderSetting> getOrderSettingByMonth(Map<Object,Object> date);

    OrderSetting findByOrderDate(Date parse);

    void editReservationsByOrderDate(OrderSetting orderSetting);

}
